home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / mgr.zoo / mgrdif1.zoo / demo / icon / Makefile
Encoding:
Makefile  |  1991-03-01  |  3.5 KB  |  159 lines

  1. #                        Copyright (c) 1987 Bellcore
  2. #                            All Rights Reserved
  3. #       Permission is granted to copy or use this program, EXCEPT that it
  4. #       may not be sold for profit, the copyright notice must be reproduced
  5. #       on copies, and credit should be given to Bellcore where it is due.
  6. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.  
  8. #    $Header: Makefile,v 4.14 88/08/24 16:00:08 bianchi Exp $
  9. #    $Source: /tmp/mgrsrc/demo/icon/RCS/Makefile,v $
  10.  
  11. # icon stuff
  12. #
  13. #    walk,mclock,cycle  courtesy  S. D. Hawley
  14. #
  15. INCL = ../../lib
  16.  
  17. #    need pixrect if mgr is pixrect (or color) version
  18. #    zoom and snap don't work in color, see NOCOLOR= below
  19.  
  20.  
  21. LIB = $(INCL)/libmgr.a
  22. MGR = ../../src
  23. BITDIR=../../lib
  24. BITLIB = $(BITDIR)/blitlib.a $(OTHERLIB)
  25. CFLAGS= -I$(INCL) -I$(BITDIR)
  26.  
  27. CFILES= browse.c cycle.c cut.c iconmail.c iconmsgs.c icontoc.c mclock.c snap.c \
  28.     walk.c window_print.c zoom.c set_colormap.c overlay.c invert_colormap.c
  29. HFILES = mail_icons.h msgs_icons.h
  30. OTHER = Makefile README
  31. START=.
  32. CPIO=icon.cpio
  33. INSROOT=/usr/mgr
  34. INSDIR=$(INSROOT)/bin
  35.  
  36. SMALL= browse cycle cut iconmail iconmsgs mclock walk window_print
  37.  
  38. #remove NOCOLOR modules for color versions
  39. NOCOLOR=zoom snap
  40. #NOCOLOR=
  41. ALL = $(SMALL) $(NOCOLOR) set_colormap overlay invert_colormap
  42.  
  43. all:    $(ALL)
  44.  
  45. small:    $(SMALL)
  46.  
  47. fast:    $(CFILES)
  48.         cc -c $(CFLAGS) $(CFILES)
  49.         make all
  50.  
  51. convert_icon:    convert_icon.o $(LIB)
  52.         cc -o convert_icon convert_icon.o $(LIB)
  53.  
  54. test2:        test2.o $(LIB)
  55.         cc -o test2 test2.o $(LIB)
  56.  
  57. chess:        chess.o $(LIB)
  58.         cc -o chess chess.o $(LIB)
  59.  
  60. cut:        cut.o $(LIB)
  61.         cc -o cut cut.o $(LIB)
  62.  
  63. browse:        browse.o $(LIB)
  64.         cc -o browse browse.o $(LIB)
  65.  
  66. walk:        walk.o $(LIB)
  67.         cc -o walk walk.o $(LIB)
  68.  
  69. iconmail.o:    mail_icons.h
  70.  
  71. iconmail:    iconmail.o $(LIB)
  72.         cc -o iconmail iconmail.o $(LIB)
  73.  
  74. iconmsgs.o:    msgs_icons.h
  75.  
  76. iconmsgs:    iconmsgs.o $(LIB)
  77.         cc -o iconmsgs iconmsgs.o $(LIB)
  78.  
  79. icontoc:    icontoc.o $(LIB) $(MGR)/bitmaphead.o $(MGR)/bitmapread.o
  80.         cc -o icontoc icontoc.o $(LIB) \
  81.             $(MGR)/bitmaphead.o $(MGR)/bitmapread.o $(BITLIB)
  82.  
  83. snap:        snap.o $(LIB) $(MGR)/bitmaphead.o $(MGR)/bitmapread.o
  84.         cc -o snap snap.o $(LIB) \
  85.             $(MGR)/bitmaphead.o $(MGR)/bitmapread.o $(BITLIB)
  86.  
  87. overlay:        overlay.o $(LIB)
  88.         cc -o overlay overlay.o $(LIB) $(BITLIB)
  89.  
  90. zoom:        zoom.o $(LIB) $(MGR)/bitmaphead.o $(MGR)/bitmapread.o
  91.         cc -o zoom zoom.o $(LIB) \
  92.             $(MGR)/bitmaphead.o $(MGR)/bitmapread.o $(BITLIB)
  93.  
  94. mclock:        mclock.o $(LIB) 
  95.         cc -o mclock mclock.o $(LIB)
  96.  
  97. cycle:        cycle.o  $(LIB)
  98.         cc -o cycle cycle.o $(LIB)
  99.  
  100. window_print:    window_print.o  $(LIB)
  101.         cc -o window_print window_print.o $(LIB)
  102.  
  103. invert_colormap:    invert_colormap.o
  104.         cc -o invert_colormap invert_colormap.o -lpixrect
  105.  
  106. set_colormap:    set_colormap.o
  107.         cc -o set_colormap set_colormap.o -lpixrect
  108.  
  109. tj3:        tj3.o  $(LIB)
  110.         cc -o tj3 tj3.o $(LIB)
  111.  
  112. tj2:        tj2.o  $(LIB)
  113.         cc -o tj2 tj2.o $(LIB)
  114.  
  115. tj:        tj.o  $(LIB)
  116.         cc -o tj tj.o $(LIB)
  117.  
  118. flip:        flip.o 
  119.         cc -o flip flip.o
  120.  
  121. rotate:        rotate.o 
  122.         cc -o rotate rotate.o
  123.  
  124. tjfilter:    tjfilter.o 
  125.         cc -o tjfilter tjfilter.o
  126.  
  127. get_header:    get_header.o 
  128.         cc -o get_header get_header.o
  129.  
  130. cpp_filter:    cpp_filter.o
  131.         cc -o cpp_filter cpp_filter.o
  132.  
  133. $(ALL):        $(INCL)/term.h
  134.  
  135. install:    all $(INSDIR)
  136.         cd $(INSDIR);  rm -f $(ALL)
  137.         cp $(ALL) $(INSDIR)
  138.  
  139. smallinstall:    small $(INSDIR)
  140.         cd $(INSDIR);  rm -f $(SMALL)
  141.         cp $(SMALL) $(INSDIR)
  142.  
  143. $(INSDIR):
  144.         mkdir $@
  145.  
  146. clean:    
  147.         rm -f *.o core
  148.  
  149. clobber:
  150.         rm -f $(ALL)
  151.  
  152. list:
  153.     @for i in ${CFILES} ${HFILES} ${OTHER}; do \
  154.         echo "${START}/$$i"; \
  155.     done    
  156.  
  157. cpio:
  158.     make -s list | cpio -ocv > ${CPIO}
  159.